//
//  PicCell.m
//  TableView
//
//  Created by Carl_fang on 15/3/30.
//  Copyright (c) 2015年 Carl_fang. All rights reserved.
//

#import "PicCell.h"
#import "UIImageView+WebCache.h"

@implementation PicCell

- (void)setModel:(movieImageModel *)model
{
    [self.image setImageWithURL:[NSURL URLWithString:model.image]];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        _image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 10, 70, 70)];
        
        //_image.backgroundColor = [UIColor orangeColor];
        
        
        [self.contentView addSubview:_image];
    }
    
    return self;
}

@end
